package com.yenlien.traceyun.plant.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Date 2021/9/9
 * @Author jiaLong
 * @Descript 投诉
 */
@Data
@Entity
@Table(name = "t_toushu")
public class TouShu implements Serializable {
    private static final long serialVersionUID = 4573750078636756590L;

    @Id
    private Long id;

    private String content;

    private LocalDateTime createTime = LocalDateTime.now();

    @Transient
    private int page = 1;
    @Transient
    @JsonIgnore
    private int pageSize = 10;
}
